import {Base} from "../../utils/base.js";

class Model extends Base{
  constructor(){
    super()
  }

   // 获取用户信息
   getUserInfo(callback){   
    this.request({
      url: '/get_user_info',
      success: function (res) {
        callback && callback(res);
      },
      fail:function(res){
        callback && callback(res);
      }
    });
  }

  // 获取下级用户
  getSubUser(callback){
    this.request({
      url: '/get_user_subordinate',
      success: function (res) {
        callback(res);
      }
    });
  } 
}

export {Model};

